﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopGradePromotion")]
    public class GradePromotion : BaseObject
    {
        //begin
        public GradePromotion()
        {}
        public GradePromotion(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _CurGrade;
        public string CurGrade
        {
            get
            {
                return _CurGrade;
            }
            set
            {
                SetPropertyValue("CurGrade", ref _CurGrade, value);
            }
        }
        private string _CurGradeName;
        public string CurGradeName
        {
            get
            {
                return _CurGradeName;
            }
            set
            {
                SetPropertyValue("CurGradeName", ref _CurGradeName, value);
            }
        }
        private long _Discount;
        public long Discount
        {
            get
            {
                return _Discount;
            }
            set
            {
                SetPropertyValue("Discount", ref _Discount, value);
            }
        }
        private long _NextUpgradeAmount;
        public long NextUpgradeAmount
        {
            get
            {
                return _NextUpgradeAmount;
            }
            set
            {
                SetPropertyValue("NextUpgradeAmount", ref _NextUpgradeAmount, value);
            }
        }
        private long _NextUpgradeCount;
        public long NextUpgradeCount
        {
            get
            {
                return _NextUpgradeCount;
            }
            set
            {
                SetPropertyValue("NextUpgradeCount", ref _NextUpgradeCount, value);
            }
        }
        //end
    }
}
